<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.Map.Entry"%>
<%@page import="java.util.Set"%>
<%@page import="com.payment.taobaoNavigator.entity.ProductEntity"%>
<%@page import="java.util.Map"%>
<%@page import="com.payment.taobaoNavigator.entity.CatagoryEntity"%>
<%@page import="java.util.List"%>
<%@page import="com.payment.taobaoNavigator.util.NavigatorCache"%>
	<div id="header">
		<div class="header_title">
			<a href="${contextPath }">淘宝导航系统首页</a>
		</div>
		<div id="navigator">
			<ul>
				<li id="first"><a href="#" class="current">图书首页</a>
				</li>
				<li><a href="#">分类列表</a>
					<div class="list">
						<%
							List<CatagoryEntity> catagoryEntitys = NavigatorCache.getByParentId(1);
							for(CatagoryEntity entity : catagoryEntitys){
								%>
						<div class="list_content">
							<span id="list_title">『<%=entity.getName() %>』</span>
							<%
								List<CatagoryEntity> children = NavigatorCache.getByParentId(entity.getId());
								for(int i = 0 ; i < children.size() ; i++){
									%>
							<span id="list_detail" onclick="showList(<%=children.get(i).getId() %>)">
								<%=children.get(i).getName() %>
							</span>
									<%
								}
							%>
						</div>
								<%
							}
						%>
						<div class="list_content">
							<span id="list_title">『少儿读物』</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
						</div>
						<div class="list_content">
							<span id="list_title">『少儿读物』</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
							<span id="list_detail">
								少儿读物
							</span>
						</div>
					</div>
				</li>
				<li><a href="#">特卖专区</a>
					<div class="list">
						这里显示特卖专区
					</div>
				</li>
			</ul>
		</div>
	</div>